import request from '@/utils/request'

// 分页查询
export function getSupplierInfo(params ) {
    return request({
        url: '/qualificationManager/page',
        method: 'post',
        data: params  
    })
}


// 编辑客户初始数据回显
export function getEditSupplierInfo(id ) {
    return request({
        url: '/supplierManager/'+id,
        method: 'get',
        data: id  
    })
}

//提交表单，更新数据库
export function updateSupplierInfo(data) {
    return request({
        url: '/supplierManager/update/'+data.id,
        method: 'post',
        data: data  
    })

}


//根据id删除客户
export function deleteSupplierInfo(delId) {
    return request({
        url: '/supplierManager/delete',
        method: 'post',
        data: {id:delId } 
    })

}

//提交表单，新增供应商
export function insertSupplierInfo(insertSupplierInfo){
    return request({
        url:'/qualificationManager/insert',
        method:'post',
        data:insertSupplierInfo
    })
}